const express = require('express')
const router = express.Router();
const axios = require('../../axios')
const { scanCodeLoginUrlMap } = require('../../api.js')

// router.get('/', async (req, res) => {
//     console.log('22', req.query)
//     let { redirect} = req.query;
//     const data = await axios.get(initJSESSIONIDDUrlMap.getLoginBanner, {
//         params: {
//             // redirect: '/otn/login/userLogin'
//             redirect
//         }
//     })
//     res.json(data)
// })
router.get('/', async (req, res) => {
    const data = await axios.get(scanCodeLoginUrlMap.passport
    )
    res.json(data)
})


module.exports = router

